package org.yang.snake.security;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * edu系统用户
 * @author shichenyang
 */
public class SnakeUser extends User {
    @Getter
    private Long id;
    @Getter
    private Long deptId;

    public SnakeUser(String username, String password, Collection<? extends GrantedAuthority> authorities,Long id,Long deptId) {
        super(username, password, authorities);
        this.id=id;
        this.deptId=deptId;
    }
}
